﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;

namespace Kakaroto.Pedidos
{
    public partial class IniciaPedido : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            PedidoActions actPedido = new PedidoActions();
            string mesa = Request.QueryString["Id"]; 
            
            actPedido.SetAllNull();
            HttpContext.Current.Session["IdPedido"] = actPedido.GetIdPedido();
            HttpContext.Current.Session["IdMesa"] = mesa;           
            Response.Redirect("ListaCategorias.aspx");
        }
    }
}